home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_automake.idb / usr / freeware / share / aclocal / missing.m4.z / missing.m4
Encoding:
M4 Source File  |  1999-07-16  |  697 b   |  19 lines

  1. ## --------------------------------------------------------- ##
  2. ## Fake the existence of programs that GNU maintainers use.  ##
  3. ## --------------------------------------------------------- ##
  4. dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  5. dnl The program must properly implement --version.
  6. AC_DEFUN(AM_MISSING_PROG,
  7. [AC_MSG_CHECKING(for working $2)
  8. # Run test in a subshell; some versions of sh will print an error if
  9. # an executable is not found, even if stderr is redirected.
  10. # Redirect stdin to placate older versions of autoconf.  Sigh.
  11. if ($2 --version) < /dev/null > /dev/null 2>&1; then
  12.    $1=$2
  13.    AC_MSG_RESULT(found)
  14. else
  15.    $1="$3/missing $2"
  16.    AC_MSG_RESULT(missing)
  17. fi
  18. AC_SUBST($1)])
  19.